package com.greensecurity.sim.service.impl;

import com.greensecurity.sim.entity.SystemMessage;
import com.greensecurity.sim.repository.SystemMessageRepository;
import com.greensecurity.sim.service.SystemMessageService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class SystemMessageServiceImpl implements SystemMessageService {

    @Resource
    private SystemMessageRepository systemMessageRepository;

    @Override
    public List<SystemMessage> findByIsRead(Boolean isRead){
        return systemMessageRepository.findByIsRead(isRead);
    }


}
